package com.settlement.system.service.impl;

import com.settlement.system.model.entity.SysTjAccount;
import com.settlement.system.mapper.SysTjAccountMapper;
import com.settlement.system.service.SysTjAccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangrensen
 * @since 2023-10-13
 */
@Service
public class SysTjAccountServiceImpl extends ServiceImpl<SysTjAccountMapper, SysTjAccount> implements SysTjAccountService {

    @Override
    public SysTjAccount findFirst() {
        List<SysTjAccount> list = this.list();
        if(list.size() > 0){
            return list.get(0);
        }
        return null;
    }
}
